package com.wys.ws_im.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.Table;

import java.util.Date;

/**
 * 消息
 *
 * @author wys
 * created in 22:23 2019/4/15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "message")
public class Message {

    @AutoID
    private Integer id;

    /**
     * 发送方Id
     */
    private Integer sendId;

    /**
     * 接收方Id
     */
    private Integer receiveId;

    /**
     * ulid
     */
    private Integer ulid;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 发送时间
     */
    private Date sendTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    // ===
    /**
     * 是否读取了
     * true：读取了，false：未读取
     */
    private Boolean isRead;

    // ===
    /**
     * 用户标识
     * 0 用户, 1 客服
     */
    private int UserFlag;

}
